/*
package com;

import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;

import java.io.IOException;

*/
/**
 * @author :Mr.zhou
 * @description: TODO edit class Description
 * @create date: 2025/1/3 16:57
 *//*

public class Base64Demo {
    public static void main(String[] args) {
        String ec=encode("test06");
        System.out.println(ec);
        System.out.println(decode(ec));
    }

    public static String encode(String string){
        BASE64Encoder base64Encoder=new BASE64Encoder();
        return  base64Encoder.encode(string.getBytes());
    }

    */
/**
     * @author :v-zhousq04
     * @description: base64解码
     * @param :method params
     * @param keyString
     * @create date: 2017/12/18 16:37
     * @last modify by:v-zhousq04
     *//*

    public static String decode(String keyString){
        BASE64Decoder base64Decoder=new BASE64Decoder();
        try {
            String string=new String(base64Decoder.decodeBuffer(keyString));
            return string;
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
*/
